package com.tuniu.agents.impl.flight.logger;

import com.tuniu.agents.impl.flight.enums.FlightAgentEnum;
import com.tuniu.agents.message.AgentLogger;
import com.tuniu.agents.util.I18nUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(FlightAgentService.BEAN_NAME)
@Slf4j
public class FlightAgentService implements AgentLogger {

    public static final String BEAN_NAME = "flightAgentLoggingService";

    @Override
    public List<String> before(String conversationId, Object messages) {
        return List.of(I18nUtil.getMessage(conversationId, FlightAgentEnum.FLIGHT_TRAFFIC_AGENT.getBefore()));
    }

    @Override
    public List<String> after(String conversationId, Object messages, Object result) {
        return null;
    }
}
